#ifndef __LAMEFILEDIALOG_H__
#define __LAMEFILEDIALOG_H__


#define WIN32_LEAN_AND_MEAN		// Exclude rarely-used stuff from Windows headers
#include <windows.h>
#include <commdlg.h>

class LAMEFileDialog  
{
  OPENFILENAME of;
  
  bool initialized;
  TCHAR buffer[512];
public:
  bool cancelled;
  LAMEFileDialog();
	virtual ~LAMEFileDialog();

  bool initialize(HWND hWnd, TCHAR *filter, TCHAR *defExt);
  void showOpen();
  void showSave();
  TCHAR *fileName()
  {
    return of.lpstrFile;
  }
};


#endif //__LAMEFILEDIALOG_H__